package com.gxa.modules.pc.fee.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.modules.model.entity.fee.OutpatientConsumptionRecords;
import com.gxa.modules.pc.fee.dto.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 门诊消费记录表 Mapper 接口
 * </p>
 *
 * @author gxa
 * @since 2022-11-12 05:31:54
 */
@Mapper
public interface OutpatientConsumptionRecordsMapper extends BaseMapper<OutpatientConsumptionRecords> {


    List<OutPatientCoRecordsdto> queryAll(OutPatientSearchDto outPatientSearchDto);

    //根据就诊人id查询就诊人的信息
    List<PatientPcdto> queryById(@Param("orderId") String orderId);
    //根据就诊人id查询就诊信息
    List<OutPatientDatePcdto> queryOutPatientByOrderId(@Param("orderId") String orderId);
    List<OutPatientDatePcdto> queryOutPatientDetailByOrderId(@Param("orderId") String orderId);
    //根据就诊人id查询就订单信息
    List<OrderDetialPcdto> queryByOrdersId(@Param("orderId")String orderId);

    void updateRemarks(@Param("orderId") String orderId, @Param("orderNotes")String orderNotes);

    Integer count(OutPatientSearchDto outPatientSearchDto);
}
